/*
 * CameraBuffer.cc
 *
 *  Created on: Apr 2, 2012
 *      Author: s90085
 */

#include "CameraBuffer.h"

CameraBuffer::CameraBuffer() : Buffer(2) {}

void CameraBuffer::setBeeld( int cameranummer, byte beeld ) {
    require( size == 2 );
	data[0] = (byte) cameranummer;
	data[1] = (byte) beeld;
}

byte CameraBuffer::getCamera() {
    require( size == 2 );
	return data[0];
}

byte CameraBuffer::getBeeld() {
    require( size == 2 );
	return data[1];
}

